import { translateTitle } from '@/utils/i18n'
const RoleList = {
  RoleList: {
    search: {
      form: {
        method: 'roleServiceImpl.queryTable',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'ROLE_NAME',
            label: translateTitle('Dams.ApplicationInterface.角色名称'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'ROLE_DESC',
            label: translateTitle('Dams.ApplicationInterface.角色描述'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'ROLE_NAME',
            label: translateTitle('Dams.ApplicationInterface.角色名称'),
            labelHidden: false,
            isRules: true,
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'ROLE_DESC',
            label: translateTitle('Dams.ApplicationInterface.角色描述'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    deleteMethod: 'roleServiceImpl.deleteById',
    updateMethod: 'roleServiceImpl.update',
    addMethod: 'roleServiceImpl.save',
  },
}
export default RoleList
